# gsrates.plt
#set term pdf color enhanced
set term pdfcairo size 400,12 color font 'Times New Roman' enhanced
set output "gsrates.pdf"
set key right bottom nobox
set xlabel "Minute"
set ylabel "Price, Rate and Moving Average"
set title "Gold/Silver Rate"

set xtics 600
set grid lw 6
#plot "rates.dat" using 1 w lp pt 11 title 'Rates',\
#     "rates.dat" using (($2)/35) w lp lt 3 pt 11 title 'Gold/35'

plot "rates.dat" using 1 w l lw 8 title 'Rates',\
     "rates.dat" using (($2)/35) w l lw 8 title 'Gold/35',\
     "rates.dat" using 4 w l lw 6 title 'Moving Average: 1  Hours',\
     "rates.dat" using 5 w l lw 6 title 'Moving Average: 6  Hours',\
     "rates.dat" using 6 w l lw 6 title 'Moving Average: 22 Hours',\
     "rates.dat" using 7 w l lw 6 title 'Moving Average: 7  Days',\
     "rates.dat" using 8 w l lw 6 title 'Moving Average: 26 Days'

# set term svg size 4800,320 fname 'Times New Roman' enhanced
# set output "gsrates.svg"
# replot

